INIT SIRD

This command must be called before either RENDER SIRD or UPDATE SIRD are called.

Initializing the SIRD involves letting the DLL know which images it should use for input and output. As well as this, which camera view-port should be used to capture 3D from.

The images that are being passed into this function MUST have been previously loaded with the Texture Flag set to 1 so it is pixel perfect.

The Random Dot Image can have a size ranging from 1x1 to 256x256. Any size bigger than this will cause errors.
The size of this image determines the smoothness and quality of the resulting SIRD - A higher resolution means more 'layers' within the SIRD. However, this also means that they eyes have to be bent further out of focus to see the image. A good medium is 128x128, although some people may still have trouble focusing on this aswell.

The Output Image Must be the same resolution as the screen, if it is not this will cause errors.

The Maximum depth (specified in world units) also helps control quality.
By specifying a depth that is a long way into the screen, more has to be rendered into the SIRD, which means to be able to see the difference between objects that are very far and objects very near, you have to re-focus your eyes too much and the illusion is lost.
Generally, this should be kept relatively low, meaning that objects which would be about 5 meters away should be just visible

Syntax

INIT SIRD Output Image Number, Random Dot Image Number, Camera Number, Maximum Depth

Related Information

SIRDS Commands Menu
Index